// 固危废贮存场所点检相关 API 封装
// 参考小程序 pages/form-manager/facility-check/hhw/index.js 逻辑
import { get, post } from './index'

// 获取固危废贮存点检详情
export const getHhwDetail = (id) => get(`/api/form/bizFacilityCheckHhw/get/${id}`)

// 近10天内上报记录（如需一键填充，可扩展）——接口命名参考 Air/Water 模块命名风格
export const getNearDataHhw = (beginTime, pollutionSourceId) => {
	return post(`/api/form/bizFacilityCheckHhw/getNearData`, {
		beginTime,
		pollutionSourceId,
	})
}

// 新增固危废贮存点检记录
export const addHhwCheck = (formData) => post(`/api/form/bizFacilityCheckHhw/add`, formData)

export default {
	getHhwDetail,
	getNearDataHhw,
	addHhwCheck,
}
